package net.shopxx.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * 实体类 - 机场
 */

@Entity
public class Airport extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7355626126421128884L;
	private String name;// 机场名称
	private String headChar;
	private String code;
	private String fcode;
	private String pinyin;
	private Area area;
	
	

	@Column(nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ManyToOne
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getFcode() {
		return fcode;
	}

	public void setFcode(String fcode) {
		this.fcode = fcode;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	@Column(updatable=false)
	public String getHeadChar() {
		return headChar;
	}

	public void setHeadChar(String headChar) {
		this.headChar = headChar;
	}
	
	
	

}